#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <windows.h>
#include <QSettings>
#include "server.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    QString getDestWindowName();

private slots:
    void on_maxButton_clicked();

    void on_minButton_clicked();

    void on_closeButton_clicked();

    void show_window();

    void charTowchar(const char* str, wchar_t *wstr, int length);

private:
    Ui::MainWindow *ui;
    Server *server;
    QSettings *settings;

};
#endif // MAINWINDOW_H
